package com.yuyou.fn.educational.service;

import com.yuyou.fn.common.util.Principals;
import com.yuyou.fn.educational.vo.EmployeeDiscountVo;

import java.math.BigDecimal;

public interface IEmployeeDiscountService {

    EmployeeDiscountVo checkCode(Long courseOrderId,String discountCode, String studentName,String studentNo);

    EmployeeDiscountVo query(String discountCode, String studentName, String studentNo);

    void lock(Long courseOrderId ,String discountCode);

    void unlock(String discountCode);

    void updateUsedStatus(Long courseOrderId, BigDecimal orderTotalAmount, String discountCode, BigDecimal discountAmount, String studentName, String studentNo,String version , Principals.Principal principal);
}
